<template>
  <h1>父组件的count为：{{count1}}</h1>
  <MyConponent
  v-model:count="count1">
  </MyConponent>
  <button @click="add">新增</button>
</template>

<script>
import MyConponent from './conponent.vue'
export default {
  name: 'MyApp',
  components: {
    MyConponent
  },
  data() {
    return {
      count1: 0
    }
  },
  methods: {
    add() {
      this.count1 ++
    }
  }
}
</script>

<style>

</style>